package com.dragon.mmochat.message;

import com.dragon.mmochat.MmochatConstant;
import com.skymobi.buffer.SkymobiBuffer;
import com.skymobi.message.SkymobiProtocolMessage;

public class Mmochat_3_5C extends SkymobiProtocolMessage {
	int battleId;
	byte pos;
	byte channel;
	String chat;

	public Mmochat_3_5C() {
		setMsgCode(MmochatConstant.MSGCODE_MMOCHAT_C_3_5);
	}

	@Override
	protected void decodeBody(SkymobiBuffer in) {
		battleId = in.getInt();
		pos = in.get();
		channel = in.get();
		chat = in.getPrefixedString(2);
	}

	public int getBattleId() {
		return battleId;
	}

	public byte getPos() {
		return pos;
	}

	public byte getChannel() {
		return channel;
	}

	public String getChat() {
		return chat;
	}

}